/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout/index.vue'

const ExampleRouter = {
  path: '/example',
  component: Layout,
  meta: {
    title: '功能组件示例',
    icon: 'MessageBox'
    // svgIcon: 'live-svg'
  },
  redirect: 'noredirect',
  children: [
    {
      path: 'uploadExcel',
      name: 'UploadExcel',
      component: () => import('@/views/example/upload-excel.vue'),
      meta: { title: 'excel报表读取', keepAlive: false }
    },
    {
      path: 'export-excel',
      name: 'ExportExcel',
      component: () => import('@/views/example/export-excel.vue'),
      meta: { title: 'excel报表导出', keepAlive: false }
    },
    {
      path: 'uploadImgAndFile',
      name: 'UploadImgAndFile',
      component: () => import('@/views/example/uploadImgAndFile.vue'),
      meta: { title: '图片及文件上传', keepAlive: false }
    },
    {
      path: 'pick-city',
      name: 'PickCity',
      component: () => import('@/views/example/pick-city.vue'),
      meta: { title: '省市区单选及多选', keepAlive: false }
    },
    {
      path: 'min-tools',
      name: 'MinTools',
      component: () => import('@/views/example/min-tools.vue'),
      meta: { title: '小功能示例', keepAlive: false }
    }
  ]
}

export default ExampleRouter
